import {WeaTools} from 'ecCom'

export const getDetailView = params => {   //获取目标的详细信息
    return WeaTools.callApi('/api/workrelate/goal/getDetailView', 'GET', params);
}

export const getGoalFeedBack = params => { //获取反馈内容
    return WeaTools.callApi('/api/workrelate/goal/getGoalFeedBack', 'GET', params);
}

export const addGoalFeedBack = params => { //增加反馈内容
    return WeaTools.callApi('/api/workrelate/goal/addGoalFeedBack', 'POST', params);
}

export const delGoalFbInfo = params => { //删除反馈内容
    return WeaTools.callApi('/api/workrelate/goal/delGoalFbInfo', 'POST', params);
}

export const getMoreGoalFeedBack = params => { //获取更多反馈信息
    return WeaTools.callApi('/api/workrelate/goal/getGoalFeedBack', 'GET', params);
}

export const getSubGoalList = params => { //获取子目标
    return WeaTools.callApi('/api/workrelate/goal/getSubGoalList', 'GET', params);
}

export const editGoalField = params => { //编辑详情字段
    return WeaTools.callApi('/api/workrelate/goal/editGoalField', 'POST', params);
}

export const getGoalLog = params => { //获取目标日志
    return WeaTools.callApi('/api/workrelate/goal/getGoalLog', 'GET', params);
}

export const updateGoalSpecial = params => { //设置关注
    return WeaTools.callApi('/api/workrelate/goal/setSpecial', 'POST', params);
}

export const editStatus = params => { //更改状态
    return WeaTools.callApi('/api/workrelate/goal/editStatus', 'POST', params);
}

export const addGoal = params => { //新增目标
    return WeaTools.callApi('/api/workrelate/goal/addGoal', 'POST', params);
}

export const viewDocFiled = params => {   //给相关附件权限
    return WeaTools.callApi('/api/workrelate/common/viewDocFiled', 'POST', params);
}